package com.henu.cee_service.mapper;

import com.henu.cee_service.entity.University;
import com.henu.cee_service.entity.UniversityExample;
import java.util.List;

import com.henu.cee_service.vo.req.UniversityAddReqVO;
import com.henu.cee_service.vo.req.UniversityPageByProvinceReqVO;
import com.henu.cee_service.vo.req.UniversityPageByScoreReqVO;
import com.henu.cee_service.vo.req.UniversityPageReqVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface UniversityMapper {
    long countByExample(UniversityExample example);

    int deleteByExample(UniversityExample example);

    int deleteByPrimaryKey(Long id);

    int insert(University record);

    int insertSelective(University record);

//    int insertSelective(UniversityAddReqVO vo);
    List<University> selectByExampleWithBLOBs(UniversityExample example);

    List<University> selectByExample(UniversityExample example);

    University selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") University record, @Param("example") UniversityExample example);

    int updateByExampleWithBLOBs(@Param("record") University record, @Param("example") UniversityExample example);

    int updateByExample(@Param("record") University record, @Param("example") UniversityExample example);

    int updateByPrimaryKeySelective(University record);

    int updateByPrimaryKeyWithBLOBs(University record);

    int updateByPrimaryKey(University record);

    List<University> selectAll(UniversityPageReqVO vo);

    List<University> selectByProvince(UniversityPageByProvinceReqVO vo);

    List<University> selectByScore(UniversityPageByScoreReqVO vo);

    List<University> selectByName(String name);
}